package com.hengpeng.itfin.persist.impl;

import org.springframework.stereotype.Repository;

import com.hengpeng.common.persist.AbstractDao;
import com.hengpeng.itfin.persist.EmailLogDao;
import com.hengpeng.itfinbase.persist.EmailLog;

/**
 * <pre>
 * TODO 邮件记录持久层实现
 * </pre>
 * @author pengfangliang
 * @version 1.0, 2010-9-3
 */
@Repository
public class EmailLogDaoImpl extends AbstractDao<EmailLog> implements EmailLogDao
{

	@Override
	public EmailLog insert(EmailLog emailLog)
	{
		super.save(emailLog);
		return emailLog;
	}

	@Override
	public int resetAllEmailForSending()
	{
		return this.exeNamedQuery("email.resetForSending");
	}

	@Override
	public EmailLog update(EmailLog emailLog)
	{
		EmailLog emLog = super.update(emailLog);
		return emLog;
	}

}
